home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
001
/
icpr20c.arc
/
DIAL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1987-07-09
|
1KB
|
67 lines
; This file was created using MAKEOTHR from the package ICPR20
; designed by Wayne Wolf. ICPR20 Copyright 1987
; You may modify this file in any way you wish but since the make
; files utilize the existing cmd files I discourage it. If you have
; comments or useful modifications please contact me, either at
; unix: ww@ufcsg.ufl.edu or bbs: PC-EXCHANGE at 404-977-6686.
DialIt:
Clear
Message S5
Wait "A" 2
IF Waitfor
Execute S0
ENDIF
Switch S7
Case "H"
Tran "ATDT"
Tran S6
Tran "!"
EndCase
Case "R"
Tran "D"
Tran S6
Tran "!"
EndCase
EndSwitch
Pause 2
RFlush
Rget S4 40 40
Ring:
Rget S4 4 70
FIND S4 "CON"
IF FOUND
GOTO Gotit
ENDIF
FIND S4 "BUS"
IF FOUND
GOTO Busy
ENDIF
FIND S4 "ANS"
IF FOUND
GOTO Gotit
ENDIF
FIND S4 "RIN"
IF FOUND
GOTO Ring
ENDIF
Busy:
Find S8 "A"
IF Found
Message "No answer. Ready to redial."
Message "Press A (Caps only) a few times to exit back to the main menu"
Pause 4
Goto DialIt:
ELSE
Execute S0
ENDIF
Gotit:
Alarm 2
ISfile S6
IF Success
Execute S6
ELSE
LOG Open S6
ENDIF
;
Exit